package com.yonyougov.devops.cruxcisupport.menu.dto;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Data
@ApiModel(value = "菜单新增")
public class MenuAddRequestDto extends BaseRequestDto {

    @NotNull
    @ApiModelProperty(required = true, value = "父菜单id")
    private BigInteger parentId;

    @NotEmpty
    @ApiModelProperty(required = true, value = "菜单名称")
    private String menuName;

    @NotEmpty
    @ApiModelProperty(required = true, value = "菜单url")
    private String menuUrl;

    @NotEmpty
    @ApiModelProperty(required = true, value = "菜单唯一码")
    private String code;
}